package src.cs2340.todoApp;

import java.util.Comparator;

public class CategoryComparator implements Comparator<TaskItem>{

	@Override
	public int compare(TaskItem lhs, TaskItem rhs) {
		String cat1 = lhs.getCategory();
		String cat2 = rhs.getCategory();
		return cat1.compareTo(cat2);
	}

}
